<template>
	<view class="personal-info-page">
		<view class="up-view">
			<view class="custom-navbar">
				<!-- 				<view class="nav-left" @click="goBack">
					<global-arrow direction="left" :size="29" color="#fff"></global-arrow>
				</view>
				<view class="nav-title">
					<text>信息修改</text>
				</view>
				<view class="nav-right">
				</view> -->
			</view>
		</view>

		<!-- 信息列表 -->
		<view class="info-list">
			<view class="cardUp">
				<!-- 订单列表 -->

				<view v-for="(order, index) in orders" :key="index" class="order-item">
					<view class="order-info">
						<text class="store-service">{{ order.storeName }}-{{ order.serviceName }}</text>
						<text class="price">-{{ order.price }}元</text>
					</view>
					<text class="order-time">{{ order.time }}</text>
				</view>

			</view>


		</view>


	</view>
</template>
<script>
	export default {
		data() {
			return {
				orders: [] // 订单列表数据
			};
		},
		onLoad() {
			this.getOrders();
		},
		methods: {
			// 获取订单数据（模拟接口请求）
			getOrders() {
				// 模拟接口请求，实际项目中替换为真实接口调用
				setTimeout(() => {
					const mockOrders = [{
							storeName: '大美汽车维修店',
							serviceName: '洗车',
							price: '50',
							time: '2023.3.11 11:09'
						},
						{
							storeName: '大美汽车维修店',
							serviceName: '洗车',
							price: '50',
							time: '2023.3.11 11:09'
						},
						{
							storeName: '大美汽车维修店',
							serviceName: '洗车',
							price: '50',
							time: '2023.3.11 11:09'
						},
						{
							storeName: '大美汽车维修店',
							serviceName: '洗车',
							price: '50',
							time: '2023.3.11 11:09'
						}
					];
					this.orders = mockOrders;
				}, 1000);
			}
		}
	};
</script>

<style scoped>
	.page {
		padding: 0 10rpx;
		background-color: #F8F8F8;
	}

	.up-view {
		padding: 0 20rpx;
		/* background: linear-gradient(to bottom, #3788FF, #0963E7); */
		color: #fff;
		padding-bottom: 250rpx;
		/* 1. 基础渐变背景（作为底层） */
		background: linear-gradient(to bottom, #3788FF, #0963E7);

		/* 2. 添加背景图（叠加在渐变上） */
		/* background-image: url('/static/icons/组 8.png'); */
		/* 背景图路径 */

		/* 3. 背景图属性设置 */
		background-repeat: no-repeat;
		/* 不重复平铺 */
		background-size: cover;
		/* 覆盖整个容器（可能裁剪） */
		/* 可选：background-size: contain; 完整显示图片（可能留空白） */

		background-position: center center;
		/* 图片居中显示 */
		background-attachment: scroll;
		/* 随内容滚动（默认值） */

		/* 图片层（在渐变上方） */
		background-blend-mode: overlay;
		/* 混合模式（可选） */
	}

	.custom-navbar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 88rpx;
		padding: 0 10rpx;
		font-weight: 300;
		box-sizing: border-box;
	}

	.nav-title {
		margin-right: 17rpx;
	}

	.personal-info-page {
		background-color: #f5f5f5;
		height: 100vh;
	}


	.info-list {
		margin-top: 20rpx;
		border-radius: 100rpx;
		padding: 20rpx;
		margin-top: -260rpx;
	}

	.cardUp {
		border-radius: 20rpx;
		background-color: #fff;
		padding: 40rpx;
		margin-bottom: 20rpx;
	}



	.evaluation-title {
		font-size: 30rpx;
		font-weight: bold;
		padding-bottom: 10rpx;
		border-bottom: 4rpx solid #F8F8F8;
		color: #333;
	}

	.store-info {
		margin-top: 26rpx;
		padding: 10rpx;
		display: flex;
		align-items: center;
	}

	.store-img {
		width: 160rpx;
		border-radius: 8rpx;
		margin-right: 40rpx;
	}

	.store-detail {
		flex: 1;
	}

	.store-name {
		font-size: 26rpx;
		margin-bottom: 20rpx;
	}

	.star-rating {
		display: flex;
		margin-top: 10rpx;
	}


	.order-item {
		background-color: #fff;
		padding: 20rpx;
		margin-bottom: 10rpx;
		border-bottom: 6rpx solid #F8F8F8;
	}

	.order-info {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 10rpx;
	}

	.store-service {
		font-size: 28rpx;
		color: #333;
	}

	.price {
		font-size: 28rpx;
		color: #e54400;
	}

	.order-time {
		font-size: 24rpx;
		color: #999;
	}
</style>